﻿using SqlSugar;

namespace Shop.Model.DB
{
    /// <summary>
    /// 优惠卷码表
    ///</summary>
    [SugarTable("Shop_CouponCode")]
    public class DBShopCouponCode
    {
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }
        /// <summary>
        /// 优惠卷id 
        ///</summary>
        public long CouponId { get; set; }
        /// <summary>
        /// 优惠卷兑换码 
        ///</summary>
        public string CouponCode { get; set; }
        /// <summary>
        /// 是否已兑换 
        ///</summary>
        public bool IsReceive { get; set; }

        /// <summary>
        /// 兑换用户ID 
        ///</summary>
        public long? ReceiveUserId { get; set; }

        /// <summary>
        /// 兑换时间 
        ///</summary>
        public DateTime? ReceiveTime { get; set; }
    }
}
